home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / PowerPlant / CommandKeyAttachments / CInternalCmdKeyAttachment.h < prev   
Encoding:
Text File  |  1997-01-31  |  958 b   |  35 lines  |  [TEXT/R*ch]

  1. // ===========================================================================
  2. //    File:                        CInternalCmdKeyAttachment.h
  3. // Version:                    1.0.1 - Jan 31, 1997
  4. //    Author:                    Mike Shields (mshields@inconnect.com)
  5. //                            
  6. //    Copyright ©1996 Mike Shields. All rights reserved.
  7. // ===========================================================================
  8. //
  9. //    Class which handles drawing and responding to command keys when it is attached 
  10. // to a button
  11.  
  12. #pragma once
  13.  
  14. #include "CCmdKeyAttachment.h"
  15.  
  16. class CInternalCmdKeyAttachment : CCmdKeyAttachment
  17.                                         
  18. {
  19. public:
  20.     enum { class_ID = 'INck' };
  21.     
  22.     static CInternalCmdKeyAttachment* CreateFromStream(LStream *inStream);
  23.     
  24.                         CInternalCmdKeyAttachment();
  25.                         CInternalCmdKeyAttachment(LStream *inStream);
  26.     virtual            ~CInternalCmdKeyAttachment();
  27.     
  28.     virtual void    EnableCommandKey(Boolean inCmdDown);
  29.  
  30. protected:
  31.     virtual void    DrawCommandKey(Boolean inVisible);
  32.     
  33.     Boolean            mShowingCommandKey;
  34. };
  35.